<template>
  <div>
      <!-- //3以标签形式 -->
     <comment :id="id"></comment>
  </div>
</template>

<script>
//1.导入评论组件
import comment from '../subcomponent/moment.vue'
export default {
    data(){
        return {
            id:this.$route.params.id
        }
    },
    //2.注册子组件
  components:{
      comment
  }
}
</script>


<style lang="less" scoped>

</style>
